package com.seele.tigerwallet.model;


import com.chad.library.adapter.base.entity.MultiItemEntity;
import com.j256.ormlite.field.DatabaseField;
import com.j256.ormlite.table.DatabaseTable;

import java.io.Serializable;

import retrofit2.http.PUT;

@DatabaseTable(tableName = "t_assets")
public class AssetsModel implements Serializable, MultiItemEntity {


    /**
     * symbol : ETH  名字
     * balance : 0  个数
     * price : 602.688 单价 ($)
     * total : 0.00000
     */


    @DatabaseField(generatedId = true, columnName = "id")
    private int _id;

    @DatabaseField(columnName = "symbol")
    public String symbol;

    @DatabaseField(columnName = "balance", defaultValue = "0")
    public String balance;

    @DatabaseField(columnName = "price", defaultValue = "0")
    public String price;

    @DatabaseField(columnName = "total")
    public String total;

    @DatabaseField(unique = true, columnName = "tokenId")
    public int id;

    @DatabaseField(columnName = "addr")
    public String addr;

    @DatabaseField(columnName = "detail", defaultValue = "0")
    public String detail;

    @DatabaseField(columnName = "isOpen")
    public boolean isOpen;

    @DatabaseField(columnName = "address")
    public String address;

    @DatabaseField(defaultValue = "1", columnName = "candisable")
    public int candisable;

    @DatabaseField(columnName = "postion")

    public long postion;

    @DatabaseField(columnName = "level")
    public int level;

    @DatabaseField(columnName = "point")
    public int point;//1 表示资产界面,2表示添加资产界面

    public float ethPrice;
    ;


    @Override
    public int getItemType() {
        return 1;
    }


}
